home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / TEMP / GNU / bison / Interface < prev    next >
Encoding:
Text File  |  1995-06-28  |  982 b   |  24 lines

  1. Interface
  2. Previous: <Grammar File=>GrammarFil> * Next: <Algorithm=>Algorithm> * Up: <Top=>!Root>
  3.  
  4. #Wrap on
  5. {fH2}Parser C-Language Interface{f}
  6.  
  7. The Bison parser is actually a C function named {fCode}yyparse{f}.  Here we
  8. describe the interface conventions of {fCode}yyparse{f} and the other
  9. functions that it needs to use.
  10.  
  11. Keep in mind that the parser uses many C identifiers starting with
  12. {fEmphasis}yy{f} and {fEmphasis}YY{f} for internal purposes.  If you use such an
  13. identifier (aside from those in this manual) in an action or in additional
  14. C code in the grammar file, you are likely to run into trouble.
  15.  
  16. #Wrap off
  17. <Parser Function=>ParserFunc>:   How to call {fCode}yyparse{f} and what it returns.
  18. <Lexical=>Lexical>:           You must supply a function {fCode}yylex{f} 
  19.                         which reads tokens.
  20. <Error Reporting=>ErrorRepor>:   You must supply a function {fCode}yyerror{f}.
  21. <Action Features=>ActionFeat>:   Special features for use in actions.
  22. #Wrap on
  23.  
  24.